package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.entity.Device;
import com.zzyl.vo.DeviceVo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DeviceMapper {
    Integer selectByName(String name);

    void insertSelective(Device device);

    Page<DeviceVo> selectByPage(DevicePageQueryDto devicePageQueryDto);

    DeviceVo selectByIotId(String iotId);
}
